package com.web.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.PageInfo;
import com.web.entity.SysBlog;

public interface SysBlogService {

	public PageInfo selectShowBlogs(SysBlog sb, Integer pageNum, Integer pageSize);

	public List<SysBlog> getBlogs();

	public List<SysBlog> getBlogId(@Param("id") Integer id);

	public Map<String, Object> changeBlogState(Integer id, Integer state);

	public Map<String, Object> deleteBlog(Integer id);

	public Map<String, Object> addBlog(SysBlog sysBlog);

	// 修改博客
	public Map<String, Object> editorBlog(SysBlog sysBlog);

	public Map<String, Object> getBlogList(SysBlog sysBlog, Integer pageNum, Integer pageSize);
}
